package com.hckjsec.cloud.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公司网站新闻对象 web_application_news
 * 
 * @author cyt
 * @date 2021-09-22
 */
public class WebApplicationNews implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** appid */
    @Excel(name = "appid")
    private String appid;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String title;

    /** 新闻图片 */
    @Excel(name = "新闻图片")
    private String img;

    /** 新闻描述 */
    @Excel(name = "新闻描述")
    private String newsDescribe;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String content;

    /** 版本号 */
    @Excel(name = "版本号")
    private String version;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 新建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setAppid(String appid) 
    {
        this.appid = appid;
    }

    public String getAppid() 
    {
        return appid;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setNewsDescribe(String newsDescribe) 
    {
        this.newsDescribe = newsDescribe;
    }

    public String getNewsDescribe() 
    {
        return newsDescribe;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("appid", getAppid())
            .append("title", getTitle())
            .append("img", getImg())
            .append("newsDescribe", getNewsDescribe())
            .append("content", getContent())
            .append("version", getVersion())
            .append("state", getState())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
